<template>
	<view class="mainpadding">
		<!-- 审核中 -->
		<view class="" v-if="dataAll.status==1">
			<view class="icon">
				<image src="../static/images/system/shz.png" mode=""></image>
			</view>
			<view class="margin_top textcenter xiaohui ershiba">
				工作人员将会在3个工作日内审核您的提交， 审核通过将会给您生成后台管理账号密码， 如果审核未通过平台将会给您反馈~ 请留意此页面！
			</view>
		</view>
		<!-- 审核通过 -->
		<view class="" v-if="dataAll.status==2">
			<view class="icon">
				<image src="../static/images/system/shtg.png" mode=""></image>
			</view>
			<view class="margin_top textcenter xiaohui ershiba">恭喜您，您已经通过审核！{{dataAll.sh_bz}}</view>
			<view class="margin_top textcenter xiaohui ershiba">账号:{{dataAll.account}}</view>
			<view class="margin_top textcenter xiaohui ershiba">密码:{{dataAll.password}}</view>
			<view class="margin_top textcenter xiaohui ershiba" @click="copy(shoppturl)">平台链接:{{shoppturl}}
			</view>
		</view>
		<!-- 审核失败 -->
		<view class="" v-if="dataAll.status==3">
			<view class="icon">
				<image src="../static/images/system/shtg.png" mode=""></image>
			</view>
			<view class="margin_top ffffff radius mainpadding">
				<view class="ershil fonweight xiaohei" v-if="dataAll.sh_bz">失败原因：{{dataAll.sh_bz}}</view>
			</view>
		</view>
		<view class="gudingdb  mainpadding" v-if="dataAll.status==3">
			<view class="bigbtn" @click.stop="tzsjrz(dataAll.id)">重新提交</view>
		</view>
	</view>
</template>

<script>
	const httpRequest = require("@/common/httpRequest.js")
	export default {
		data() {
			return {
				dataAll: {},
				shoppturl:""
			}
		},
		onLoad(options) {
			this.dataAll = JSON.parse(decodeURIComponent(options.msg))
			console.log(this.dataAll);
			this.getsystem()
		},
		methods: {
			tzsjrz(id) {
				uni.redirectTo({
					url: '/pages_wode/shangjiruzhu?id=' + id
				})
			},
			getsystem(){
				httpRequest.request('/api/index/getConfigInfo', 'GET', {
				}).then(res => {
					this.shoppturl = res.data.shoppturl
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.icon {
		width: 306rpx;
		height: 306rpx;
		margin: 30rpx auto 0;

		image {
			width: 100%;
			height: 100%;
		}
	}
</style>